var db = openDatabase('shop-assister', '1.0', 'Shop Assister', 2 * 1024 * 1024);

            function createDB(){
                db.transaction(function (tx) {
                    tx.executeSql('CREATE TABLE IF NOT EXISTS cart (id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, url,image,price)');
                });
            }

            function insert(item){
                db.transaction(function (tx) {
                    tx.executeSql('INSERT INTO cart (url,image,price) VALUES ( "'+item.url+'","'+item.image+'","'+item.price+'")');
                });
            }

            function remove(item){
                db.transaction(function (tx) {
                    tx.executeSql('DELETE FROM cart WHERE id="'+item+'"');
                });
            }